// 需求活动的api

import request from '@/utils/request.js'


/**
 * 新增活动
 */
export function activityAddApi(data) {
	return request.post('/activity/add', data)
}

/**
 * 报名列表
 */
export function indexActivityApp(data) {
	return request.post('/anon/index/activity',data)
}

/**
 * 我的活动列表
 */
export function activityMyActivityApi(data) {
	return request.post('/activity/myActivity',data)
}

/**
 * 报名列表
 */
export function applicantListApi(data) {
	return request.post('/activity/applicant/list',data)
}

/**
 * 报名活动
 */
export function activityApplicantApi(data) {
	return request.post(`/activity/applicant/${data}`)
}

/**
 * 确认预约
 */
export function applicantConfirmApi(data) {
	return request.post(`/activity/applicant/confirm/${data}`)
}

/**
 * 取消预约
 */
export function applicantCancelApi(data) {
	return request.post(`/activity/applicant/cancel/${data}`)
}

/**
 * 获取系统参数
 * activity_earnest_amount：获取定金金额，单位/每人
*  activity_auto_refund_time：活动自动退定金时间，单位分钟
 */
export function systemConfigApi(data){
	return request.get(`anon/index/system/config/${data}`)
}


/**
 * 发送短信验证码
 */
export function getAuthCreateCodeApi(phone,data) {
	return request.get(`/anon/auth/createCode/${phone}`,data)
}

/**
 * 验证短信验证码
 */
export function getAuthregisterApi(data) {
	return request.get('/anon/auth/verify/code',data)
}



/**
 * 艺人-我的报名列表
 */
export function getArtistListApi(data) {
	return request.post('/activity/applicant/artist/list',data)
}


/**
 * 订单支付
 */
export function getActivityPayApi(data) {
	return request.post('/activity/pay',data)
}




